Login page, redirect class

- login work
- registration stuff
- redirect class for errors