registration form tweaks, preventing the form to be accidentally submitted multiple times (creating duplicate users), includes user-side basic validation