Added submit form functionality