Added lib/pagination.php.
Added call to pagination library in config/bootsrap.php.
Added countThreads() method in models/thread.php.
Added pagination div in views/thread/index.php.
Added pagination details inside the index() methon in thread_controller.php.
Added sortThreads() method and modifed the getAll() method to accept sort_by, order, and page parameters in models/thread.php.
Added params to getAll() call inside the index() method in thread_controller.php.
Initiated session_start() in config/bootstrap.php.
Included user_id value when inserting a new user inside the create() method in models/thread.php.
Assigned session values in login_controller.php.
Renamed MVC files and adjusted helpers to reflect User instead of Login.
Removed session_unset() in thread_controller.php. Added logout() and blank register() methods in user_controller.php.
Added logout and home buttons in views/layout/default.php. Added redirect to login page upon logout in user_controller.php.
Added views/user/home.php. Changed login sequence to include redirection to home page.