I changed it to <button type="submit"> now.