fix order of exectuion in PostLogin.sh script