Resolved duplicate data issue when logging in more than once.