finish change password function