modal styling and validation