added validations and display of error messages in creating new article