added authentication
Added functionality to limit adminstrative functions to logged in users only