New password code with argument passed in method