Make required form inputs required, handle empty paramters