used proper forms to do post requests