Uses regex in allCharactersValid validation
Removes unnecessary validation function