Registration form displays an error when validations fail