add callback for login