Adding Error checking to form