New login

Completely new login code