login/logout functional minus auto login to first user