add login function. standarize login/is logged in