just added the password check when the user registers