controller redirection, user login/logout are now working

- login little rewritted, logout added
- redirection for controller added
- profile file
login and logout, redirection for Controller.php