allows log out for users