logic for password becoming invalid