Added checks for misformed names in layout file