Javascript-validation for registration

To-do: Add haptic feedback