code cleanup
validation moved to function, redirect to newAssetAction added on file upload error