more styling for form and some logic