updated server to recieve post from form