update the login verify function