move getByLoginName to it's own interface