login/logout functional

Working on customers foreach, filter issue.