changing password wasn't geetting properly encryted