Create controller.php

Template based on Mitch criticism concernong or login structure. To be modify