added login stuff. doesnt work with api