Refactoring. Added registrationError view