Added validation in stock input for invalid addresses or 404 messages.