update the mechanism of user login