Execute login on commands that require it

I wasn't sure if this was still something you wanted done but it was an issue so this fixes #37