log in/out functionality implimented