File upload validation

- Added validation method to check file type.
- All validation is now done through Validation class via callback.
- Moved upload functionality from model to controller.