changePass function implemented