fix 500 error in login page