added some methods to the base controller for requiring a user to be logged in to access method