Added ensure logged in method in app controller to make sure users must be logged in to do certain things