Checks password when creating a new user