Client-side registration form validation