Expanded registration form, Added form validation both client side and server side