Completed registration form and updated view logic and form validation logic