New login method, new features now in main.py