fix views for error messages in registration