Fixing login / register bugs.