Added alert  and changed submit to button