Rough implementation of submit form