Added form validation

Only added to Add file page