Add login/logout

Signed-off-by: Ian Macalinao <me@ian.pw>