changed the login callback signature