add login check
use project settings variable instead of relative path