Change method of passing username password for autologin.