get form submit working properly