perform authentication and add todos service factory