Singin works for correct creds but crashs for wrong