create message validation and main layout design