new controller for login and session management; added notices and errors handling in the main layout