added validation to ribe, style error messages