adjusting password check