created login controller and fixed yet some more template and routing issues