Added basic form and post request logic