completed change password function