Updated loadUserByUsername method.