Added auth form error handling