generate controller logins and template index