Factored out login item code to its own class