Better error handling for the login drawer