revoke login and added alerts for debug