History cleared if login page comes