Use app engine to log in and log out