went back to simple login function now