Update User.h

Added a function, isLoggedIn(), logging in and out is tricky, but works completely as far as I understand it