Changed password to a char[] array rather than String.