Preventing from dublicate entry after reload of a page.