function to setup login shell