updating set password method.