fixed permissions and infinite loop
escape login in identifier text