Authenticating the user with the backend