Logout

- edited user class to have a isloggedin property
- created way to logout
- reviewed code and commented areas to make more clear