refactoring login report into common template
adds job for generating reports periodically