error handling for auth forms