added validations. Other than numbers can't be excuted