fixed bug by adding validation
Merge pull request #124 from MediaSapiens/fix_checkin_resource_bug

fixed bug by adding validation