move newpassword into separate file