error messages added to register.
should be refactored and go to base.html