finish login and bind