fixed error response in create action