checkRules method added to ApplicationDAO