add login controller and commands
Add template repository.