Removed errornous validation on published
Added validation to ensure that published is either true or false.