Checks for valid new password