added validation to prevent blank statuses being accepted