Added validation to name fields for pages and layouts. Issue #106