added number validation to NumberController constructor