css and functionality for modals, validation for form