added login manager, sessions and view validator