change the way to login