fix mass assignable issue and make output message more descriptive