Add template and add login controller