fix error 500 on login page