updated select login, for cross-browser