When a user clicks 'register with Github' and is already signed in to github, the server returns a 500 error.