check for correct password syntax when resetting