file type validation and field disabling added