Fixed a lot of stuff

- Remember me is working
- Head name change until fix
- Index change to work with cookie
- Logout change to work with cookie
- checkLogin change to work with cookie
- Security Fix.