error handle in add new stock