Changed password handling to use standard functions, why reinvent the wheel?