format form properly