Added register form validation and pages