Allow for connection error popup to appear during patient registration. Only take the history one step back if we are on the sign in page