Working registration client-side validation