Handle all requests from #2 Returns: - success, if the login succeeds - error with error code, if there is an error