updated shell scripts to check user correctly