Controller methods now check if the user is logged in for some actions