error handling in AddNewStock Buttons and UpdateStock Buttons