add check password and reset function