Added function to allow only numbers