Added validation to stop single quotes being included in username. Without this validation, a username including a single quote can't log in, and the user cannot be deleted.