Update autologin.js

Make code clearer, add prompts and checkers, and improve regex.