working multi input submit and parsing