add login method

not used yet, but will be eventually