Add login and logout methods