Frontend validation on upload media form