Chrome page is clearing input field data(refreshing) while switching to other window

Below are steps I am doing

  1. Open webpage
  2. Entering user name and password.
    3.Switching to another window (mobile pass) to fetch the passcode (this time chrome clearing the username and password field)

Please advise