Adds LoggedController to encapsulate the logged user logic