Added login_controller.php.
Added views/login/index.php.
Changed .htaccess to point to views/login/index.php. Added models/login.php.
Added checkUserLogin() method in login_controller.php.
Added call to checkUserLogin() method, changed name attributes for Username and Password, and changed value of page_next hidden input in views/login/index.php.
Added models/user.php.
Added login object in the checkUserLogin() method in login_controller.php.
Added .swp files to .gitignore file.
Corrected SELECT statement inside checkValidUser() method in models/login.php.
Added validation rule in models/user.php.
Changed validation rule from 'body' to 'password' in models/user.php.
Added call to user validation inside the checkValidUser() method in models/login.php.
Added error message div in views/login/index.php.
Added RecordNotFoundException class in app_exception.php.
Aded user object inside the index() method, added switch case 'index' and added call to checkValidUser() method in the 'thread/index' case inside the checkUserLogin() method in login_controller.php.
Added catch statement for RecordNotFoundException inside the checkUserLogin() method in login_controller.php.
Added error message display upon NoRecordFoundException in views/login/index.php.
Added redirect() function in helpers/html_helper.php.
Changed call from render() to redirect() function in login_controller.php.
Modified the checkUserLogin() method to fetch messages for all exceptions caught and added rule to render or redirect page depending on the value of the user variable in login_controller.php.