errors msg in new view and index view