autologin refinements and addition of esc to go back