finished error handling for authentication forms