Add function to log user out