Add error handling for sign-in.