Added some validation to forms (WIP).
Implemented upload file functionality.