fix equipment controller bug and add mdoel validations