login tweaks + tests
login still not working correctly...