fix customer login detection