implementing form validation for ideas model