create a simple Log In Log Out function