status codes 500 in login.js