Added form validation to Signin/Register pages.