created a Flash class to help us display messages when validation fails.