Add validations and style the error messages