Added setCurrentUser call before login.