fix the password process function