Solving multiple login problem
New attempt
Multiple login fixed
New fix
Code organization done. Looking for occasional bugs