Added username and password sanitisation methods