moar login stuff, small changes ftw