Error messages handling and validations