Cancel login

Send an error when cancelling login dialog
Also, don't replay session but check session state and synchronously send next if logged in