login, register error response code 500 -> 400