modify login protocol