fixed redirect bug for logged in users who are not admins but try to access the admin site