Validates user creation in JS