Document checks

Add type and size check to documents upload