Implemented js new-user validation (not working)