Finishing the change password function.