Change formatting and fix typos
Fix $validation->error() usage
Factored out validation rules