added events controller and event model plus fixed the links for login