Login page returns 500 error after deployment