Test pagination check. FlashMessage doesn't work
Fixed code format in `index` action
Fixed routes and added flash messages
Added formatting for error messages and messages
Fixed messages output
Fixed message