Added RegEx for valid inputs