Login page, redirect class

- login work
- registration stuff
- redirect class for errors
Logout

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