fix login protocol