Adds proper sign in error handling and sets up flash.notice for future errors.