add ResourceType checking for LoginRequired martini handler