Added valid class to messages