change login.sh to get login credentials from environment
refactor session name check
make parser print login hash
optimized wait time
fix a regex bug