Updated code to meet code review requirements.

Added xd-ec2.properties validation.