simplify login protocol