MVC Refactor Refactor your app to use Models and Controllers. Copy and paste your code into the MVC template. Further Add hashed password and hashed log in cookie to your app.