Add validations and tests for creating challenge items and style flash messages