fixing login so it works in webview