put email controller behind login