revised the login.sh script