Commit API design for User logout function