Added regex-expressions to check wether inputs are numeric or not