added basic form functionality and protected page