Check if user is still logging in

Would fix #37