Adds some validation on both sides aand styling for images