fixed the sign in for the app [UNTESTED]