Adding validations in order to get the Resources dir.