Added alert to invalidNumber function