Added alert box when fields are left empty