Fixed js new-user validation (solved bug #3)