updated login stuff