Added form functionality

Made the form work!