Added Regex to validate input