addded login stuff