fixing login with sandbox