error checking on /add page