updated login process