Adding sign in/out functionality