adding user helper code from chp 7
provide sign-in-out capability