Added login template and controllers