Validate cost in course form