Added validation checks to registration page.