Added a check for only warnings when validating layout