pack login protocol as login