Created basic functionality for verifying whether user is logged in or is logged in as admin in MY_Controller