Login

Consider having a class to generate forms. It´s weird to have this code in this place. Having it in its own class makes controller more concise and readable