Regex checking for valid password characters.