added lots of new login stuff