modified login procedure for pbkdf2