added validation and basic form layout